Right (str, length)

Basic and Crystal syntax.

Arguments
Returns

Text String

Action

Extracts the given number of text characters from the right side of the specified string.

Typical uses

Use this function to obtain just the right part of a string. For instance, use it to obtain the last four digits of social security numbers stored in a field.

Examples

The following examples are applicable to both Basic and Crystal syntax:

Right("abcdefg", 3)

Returns "efg".

Right({table.SSNUM}, 4)

Returns the last 4 digits of the social security number as a String.

Comments

This function is designed to work like the Visual Basic function of the same name.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com